// Project: MESP
// ////////////////////////////////
clear all
set more 1
set mem 300m

// This do-file setups the path of work folders and executes the rest of do-files.


// /////////////////////////////////
// 0. DEFINE USER MACHINE
// /////////////////////////////////

// Please define the path of your work folder, and leave active the global of the corresponding user.

global mac "User1"
//global mac "User2"
// /////////////////////////////////

if "$mac"=="User1" {
  global path   "INSERT PATH OF USER 1"
	}
else if "$mac"=="User2" {
  global path   "INSERT PATH OF USER 2"
	}


global path_data 		"${path}/PAME 3ie/Databases"

global path "${path}/PAME 3ie/Do-files"

chdir "${path}"


// Results will be displayed in log files
global path_logs "${path}/Logs"


// ///////////////////////////////////////////////
// 1. Execution of do-files
// ///////////////////////////////////////////////

do "1_Prepare variables 2010.do"
do "2_Prepare variables 2011.do"
do "3_Prepare variables 2013.do"
do "4_Merge 2010-2011-2013.do"
do "5_Strata.do"
do "6_Results.do"

